package com.dyh.quickdemo.tools.a2;

import com.alibaba.fastjson.JSON;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

/*
@Author=Joey Wheeler
@Date=2020/10/31 20:17
*/
public class FileHandler {
    public static void main(String[] args) throws IOException {

        String in1 = "D:\\work\\dyh\\quick-demo\\src\\main\\java\\com\\dyh\\quickdemo\\tools\\a2\\1.txt";
        String in2 = "D:\\work\\dyh\\quick-demo\\src\\main\\java\\com\\dyh\\quickdemo\\tools\\a2\\2.txt";
        String in3 = "D:\\work\\dyh\\quick-demo\\src\\main\\java\\com\\dyh\\quickdemo\\tools\\a2\\3.txt";

        BufferedReader bufferedReader1 = new BufferedReader(new InputStreamReader(new FileInputStream(in1)));
        BufferedReader bufferedReader2 = new BufferedReader(new InputStreamReader(new FileInputStream(in2)));
        BufferedReader bufferedReader3 = new BufferedReader(new InputStreamReader(new FileInputStream(in3)));

        String line = null;
        List<String> l1 = new ArrayList<>();
        while ((line = bufferedReader1.readLine()) != null) {
            l1.add(line.trim());
        }

        List<String> l2 = new ArrayList<>();
        while ((line = bufferedReader2.readLine()) != null) {
            l2.add(line.trim());
        }


        List<String> l3 = new ArrayList<>();
        while ((line = bufferedReader3.readLine()) != null) {
            l3.add(line.trim());
        }

        System.out.println();

    }
}
